//
//  YZZBReportReasonCell.m
//  YeZhanLive
//
//  Created by liufy on 2017/12/6.
//  Copyright © 2017年 liufy. All rights reserved.
//
//reportReasonCell
#import "YZZBReportReasonCell.h"

@interface YZZBReportReasonCell ()
@property (weak, nonatomic) IBOutlet UIImageView *reasonSelectImageView;
@property (weak, nonatomic) IBOutlet UILabel *reasonLabel;
@end

@implementation YZZBReportReasonCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.reasonSelectImageView setImage:[UIImage imageNamed:@""]];
    self.reasonSelectImageView.layer.borderWidth = 1;
    self.reasonSelectImageView.layer.borderColor = UIColorMake(200, 200, 200).CGColor;
    self.reasonSelectImageView.layer.cornerRadius = 11;
}

- (void)setReason:(NSString *)reason{
    _reason = reason;
    self.reasonLabel.text = reason;
}

- (void)setSelected:(BOOL)selected{
    if (selected) {
        [self.reasonSelectImageView setImage:[UIImage imageNamed:@"im_image_selected_sel"]];
        self.reasonSelectImageView.layer.borderWidth = 0;
    } else {
        [self.reasonSelectImageView setImage:[UIImage imageNamed:@""]];
        self.reasonSelectImageView.layer.borderWidth = 1;
        self.reasonSelectImageView.layer.borderColor = UIColorMake(200, 200, 200).CGColor;
        self.reasonSelectImageView.layer.cornerRadius = 11;
    }
}

@end
